/*    */ package com.zimbra.cs.datasource;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.account.DataSource;
/*    */ import com.zimbra.cs.db.DbDataSource;
/*    */ import com.zimbra.cs.db.DbDataSource.DataSourceItem;
/*    */ import java.util.Collection;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class DataSourceFolderMapping
/*    */   extends DataSourceMapping
/*    */ {
/*    */   public DataSourceFolderMapping(DataSource ds, DbDataSource.DataSourceItem dsi)
/*    */     throws ServiceException
/*    */   {
/* 28 */     super(ds, dsi);
/*    */   }
/*    */   
/*    */   public DataSourceFolderMapping(DataSource ds, int itemId) throws ServiceException {
/* 32 */     super(ds, itemId);
/*    */   }
/*    */   
/*    */   public DataSourceFolderMapping(DataSource ds, String remoteId) throws ServiceException {
/* 36 */     super(ds, remoteId);
/*    */   }
/*    */   
/*    */   public DataSourceFolderMapping(DataSource ds, int itemId, String remoteId) throws ServiceException {
/* 40 */     super(ds, ds.getFolderId(), itemId, remoteId);
/*    */   }
/*    */   
/*    */   public void delete() throws ServiceException
/*    */   {
/* 45 */     deleteMappings(this.ds, this.dsi.itemId);
/* 46 */     super.delete();
/*    */   }
/*    */   
/*    */   public void deleteMappings() throws ServiceException {
/* 50 */     deleteMappings(this.ds, this.dsi.itemId);
/*    */   }
/*    */   
/*    */   public static void deleteMappings(DataSource ds, int itemId) throws ServiceException
/*    */   {
/* 55 */     DbDataSource.deleteAllMappingsInFolder(ds, itemId);
/*    */   }
/*    */   
/*    */   public Collection<DbDataSource.DataSourceItem> getMappings() throws ServiceException {
/* 59 */     return getMappings(this.ds, this.dsi.itemId);
/*    */   }
/*    */   
/*    */   public Collection<DbDataSource.DataSourceItem> getMappingsAndFlags() throws ServiceException {
/* 63 */     return getMappingsAndFlags(this.ds, this.dsi.itemId);
/*    */   }
/*    */   
/*    */   public static Collection<DbDataSource.DataSourceItem> getMappings(DataSource ds, int folderId) throws ServiceException
/*    */   {
/* 68 */     return DbDataSource.getAllMappingsInFolder(ds, folderId);
/*    */   }
/*    */   
/*    */   public static Collection<DbDataSource.DataSourceItem> getMappingsAndFlags(DataSource ds, int folderId) throws ServiceException
/*    */   {
/* 73 */     return DbDataSource.getAllMappingsAndFlagsInFolder(ds, folderId);
/*    */   }
/*    */   
/*    */   protected void parseMetaData()
/*    */     throws ServiceException
/*    */   {}
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/datasource/DataSourceFolderMapping.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */